package com.jqb.service.impl;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.jqb.dao.IUserDao;
import com.jqb.model.User;
import com.jqb.service.IUserService;

@Service("userService")
public class UserServiceImpl implements IUserService {

	private IUserDao userDao;
	
	public IUserDao getUserDao() {
		return userDao;
	}
	@Inject
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public void addUser(User user) {
		userDao.addUser(user);
	}

	@Override
	public void delUser(int id) {
		userDao.delUser(id);
	}

	@Override
	public void updateUser(int id) {
		userDao.updateUer(id);
	}

	@Override
	public User load(int id) {
		userDao.loadUser(id);
		return null;
	}

}
